﻿using System;
using System.Collections.Generic;
using System.Text;
using MyLib;

namespace ProcessControl
{
    public class Format
    {
        public static string GetDate(object obj)
        {
            if (obj == DBNull.Value || obj==null)
            {
                return "";
            }
            if (obj.ToString().Trim() == "")
            {
                return "";
            }
            DateTime dt = ConvertUtil.ToDateTime(obj);

            return dt.ToShortDateString();
        }
    }
}
